package com.tbit.uqbike.webmanager.dao.log;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.tbit.config.datasource.DataSource;
import com.tbit.uqbike.object.pojo.statistics.ExportViolationLog;
import com.tbit.uqbike.object.pojo.statistics.ViolationLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author: chen
 * @Description:
 * @Date: 创建于 9:56 2020/3/16
 */
@DS(DataSource.LOG)
public interface ViolationLogDao {
    /**
     * 挪车记录份分页统计详细
     */
    List<ViolationLog> queryPage(Map<String, Object> map);

    /**
     * 挪车记录份分页统计总数
     */
    Integer queryCount(Map<String, Object> map);

    List<ExportViolationLog> export(Map<String, Object> map);

    /**
     * 驳回举报
     *
     * @param logId
     * @return
     */
    int reject(@Param("logId") Integer logId);

    /**
     * 根据id获取运维举报记录
     *
     * @param violationLogId 运维举报记录id
     */
    ViolationLog getById(@Param("violationLogId") Integer violationLogId);

    /**
     * 根据id处理运维举报记录
     *
     * @param violationLog 运维举报记录
     */
    void updateById(ViolationLog violationLog);
}
